import { Controller, Get, Param, Query, UseGuards } from '@nestjs/common';
import { CatsSerivce } from './cat.service';
// import { AuthGuard } from 'src/auth/auth.guard';


@Controller('cats')
// @UseGuards(AuthGuard)
export class CatsController {
  constructor(private readonly catsService: CatsSerivce) {}

  @Get()
  findAll() {
    return this.catsService.findAll();
  }

  @Get(':id')
  findOne(
    @Param('id') id: number,
    @Query('t') t: number,
  ) {
    // console.log(arguments);
    return id;
  }
}
